/**
 * 功能描述 卡片
 */

define(function (require, exports, module) {
	var Form = require("form");
	var enums = require("enums");
	var store =require("store");
	var activeUser = store.get("user");
	
    var instance = {
        initComponent: function (params,widget) {
        	var form = new Form({
        		parentNode:".J-form",
        		model:{
	  				layout:"3_1",
					id:"visitway",
					defaultButton:false,
					items:[{
                    	name : "servicePoint",
                    	label : "目的地",
                    	type : "select",
                    	keyField : "pkServicePoint",
                    	valueField : "name",
                    },{
                    	name : "roomType",
                    	label : "房型",
                    	type : "select",
                    	keyField : "pkRoomType",
                    	valueField : "name",
                    },{
                    	name : "count",
                    	label : "房间数",
                    },{
                    	name : "checkInDate",
                    	label : "入住日期",
                    	type : "date",
                    	 mode : "YYYY-MM-DD",
                    },{
                    	name : "checkOutDate",
                    	label : "退房日期",
                    	type : "date",
                    	 mode : "YYYY-MM-DD",
                    },{
                   	 	 name : "deposit",
                         label : "订金金额",
                    },{
                   	 	 name : "signUpNumber",
	                     label : "体验人数",
	                     readonly : true
                    },{
                    	 name : "contactName",
                    	 label : "联系人",
                    },{
	                   	 name : "contactPhone",
	                	 label : "联系方式",
                    },{
	                   	 name : "operateDate",
	                     type : "date",
	                     label : "登记日期",
	                     mode : "YYYY-MM-DD",
                    },{
                   	 	 name : "description",
	                     label : "备注",
                    },{
                    	 name : "status",
                    	 label : "收费状态",
                    	 type : "select",
                     	options:enums["com.eling.elcms.travel.model.NonMemberGroup.Status"],
                    },{
                    	 name : "money",
                    	 label : "实收(元)",
                    },{
                    	 name : "chargeDate",
                    	 label : "收费日期",
                    	 mode : "YYYY-MM-DD",
                    	 type : "date",
                    }]
				 }
	       	 });
       	 	widget.set("form",form);
        }
    };
    module.exports = instance;
});
